/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-7-14 下午4:52 Created by piaohh
 */
package com.jade.bss.beacon.apply;

import java.util.Date;
import javax.persistence.*;

/**
 *
 * @author <a href="mailto:Administrator@ceno.cn">piaohh</a>
 * @version 1.0 15-7-14 下午4:52
 */
@Entity
@Table (name = "BSS_APPLY")
public class Apply
{
    public static final int APPLY_STATUS_FAILED = 0;
    public static final int APPLY_STATUS_AUDITING = 1;
    public static final int APPLY_STATUS_PASSED = 2;

    @Id
    @GeneratedValue (generator = "BSS_SEQ_APPLY")
    @SequenceGenerator (name = "BSS_SEQ_APPLY", sequenceName = "BSS_SEQ_APPLY")
    private long id;
    @Column (name = "owner_id", length = 32)
    private String ownerId;
    @Column (name = "owner_type", length = 32)
    private String ownerType;
    //申请批次ID
    @Column (name = "apply_id")
    private long applyId;
    //审核返回状态
    @Column (name = "status")
    private int status;
    //审核返回备注
    @Column (name = "comment", length = 68)
    private String comment;
    @Column (name = "apply_time", nullable = false, updatable = false)
    private Date applyTime;

    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public String getOwnerId()
    {
        return ownerId;
    }

    public void setOwnerId(String ownerId)
    {
        this.ownerId = ownerId;
    }

    public String getOwnerType()
    {
        return ownerType;
    }

    public void setOwnerType(String ownerType)
    {
        this.ownerType = ownerType;
    }

    public long getApplyId()
    {
        return applyId;
    }

    public void setApplyId(long applyId)
    {
        this.applyId = applyId;
    }

    public int getStatus()
    {
        return status;
    }

    public void setStatus(int status)
    {
        this.status = status;
    }

    public String getComment()
    {
        return comment;
    }

    public void setComment(String comment)
    {
        this.comment = comment;
    }

    public Date getApplyTime()
    {
        return applyTime;
    }

    public void setApplyTime(Date applyTime)
    {
        this.applyTime = applyTime;
    }
}
